package com.panda.business.mapper;

import com.panda.business.domain.CustomerInfo;
import com.panda.framework.domain.base.DBPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerMapper {
	
	List<CustomerInfo> queryCustomerInfo(@Param("page") DBPage page, @Param("suppliername") String suppliername);

	Integer queryCustomerInfoCount(@Param("page") DBPage page, @Param("suppliername") String suppliername);

	CustomerInfo findCustomerInfoByid(@Param("id") Integer id);

	Integer insert(CustomerInfo info);

	void update(CustomerInfo info);

	void delete(CustomerInfo info);

	Integer getCustomerPhoneCount(@Param("id") Integer id);


	CustomerInfo getCustomerInfoByDeviceId(@Param("deviceid") String deviceid);
}
